package com.example.cloud.utils;

import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;

/**
 * Created by wangtao on 2018/6/6.
 */
public class MongoUtil {

    public static Query createQuery(Criteria criteria){
        Query query = new Query();
        query.addCriteria(criteria);
        return query;
    }
}
